\section{domain.\+h File Reference}
\label{domain_8h}\index{domain.\+h@{domain.\+h}}


Ether\+C\+AT domain structure.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ ec\+\_\+domain}
\begin{DoxyCompactList}\small\item\em Ether\+C\+AT domain. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\label{domain_8h_a62277a562703ecfbf3aad9e3b0ad8c75}} 
void \textbf{ ec\+\_\+domain\+\_\+init} (\textbf{ ec\+\_\+domain\+\_\+t} $\ast$, \textbf{ ec\+\_\+master\+\_\+t} $\ast$, unsigned int)
\begin{DoxyCompactList}\small\item\em Domain constructor. \end{DoxyCompactList}\item 
\mbox{\label{domain_8h_a0673cfe6b046dbc8160068ef776fd0b1}} 
void \textbf{ ec\+\_\+domain\+\_\+clear} (\textbf{ ec\+\_\+domain\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Domain destructor. \end{DoxyCompactList}\item 
\mbox{\label{domain_8h_a145e578c728c987fb2764ea7c30439f1}} 
void \textbf{ ec\+\_\+domain\+\_\+add\+\_\+fmmu\+\_\+config} (\textbf{ ec\+\_\+domain\+\_\+t} $\ast$, \textbf{ ec\+\_\+fmmu\+\_\+config\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Adds an F\+M\+MU configuration to the domain. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+domain\+\_\+finish} (\textbf{ ec\+\_\+domain\+\_\+t} $\ast$, uint32\+\_\+t)
\begin{DoxyCompactList}\small\item\em Finishes a domain. \end{DoxyCompactList}\item 
\mbox{\label{domain_8h_ae3b2fb4aa807084750214357bdba897a}} 
unsigned int \textbf{ ec\+\_\+domain\+\_\+fmmu\+\_\+count} (const \textbf{ ec\+\_\+domain\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Get the number of F\+M\+MU configurations of the domain. \end{DoxyCompactList}\item 
const \textbf{ ec\+\_\+fmmu\+\_\+config\+\_\+t} $\ast$ \textbf{ ec\+\_\+domain\+\_\+find\+\_\+fmmu} (const \textbf{ ec\+\_\+domain\+\_\+t} $\ast$, unsigned int)
\begin{DoxyCompactList}\small\item\em Get a certain F\+M\+MU configuration via its position in the list. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Ether\+C\+AT domain structure. 



\subsection{Function Documentation}
\mbox{\label{domain_8h_a0ca3858bbbb5f744d85d1c6d5aa247c3}} 
\index{domain.\+h@{domain.\+h}!ec\+\_\+domain\+\_\+finish@{ec\+\_\+domain\+\_\+finish}}
\index{ec\+\_\+domain\+\_\+finish@{ec\+\_\+domain\+\_\+finish}!domain.\+h@{domain.\+h}}
\subsubsection{ec\+\_\+domain\+\_\+finish()}
{\footnotesize\ttfamily int ec\+\_\+domain\+\_\+finish (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+domain\+\_\+t} $\ast$}]{domain,  }\item[{uint32\+\_\+t}]{base\+\_\+address }\end{DoxyParamCaption})}



Finishes a domain. 

This allocates the necessary datagrams and writes the correct logical addresses to every configured F\+M\+MU.

\begin{DoxyRefDesc}{Todo}
\item[\textbf{ Todo}]Check for F\+M\+M\+Us that do not fit into any datagram.\end{DoxyRefDesc}



\begin{DoxyRetVals}{Return values}
{\em 0} & Success \\
\hline
{\em $<$0} & Error code. \\
\hline
\end{DoxyRetVals}

\begin{DoxyParams}{Parameters}
{\em domain} & Ether\+C\+AT domain. \\
\hline
{\em base\+\_\+address} & Logical base address. \\
\hline
\end{DoxyParams}


Definition at line 226 of file domain.\+c.

\mbox{\label{domain_8h_a1a0dbfb47f2634ffacfd0523bb706fde}} 
\index{domain.\+h@{domain.\+h}!ec\+\_\+domain\+\_\+find\+\_\+fmmu@{ec\+\_\+domain\+\_\+find\+\_\+fmmu}}
\index{ec\+\_\+domain\+\_\+find\+\_\+fmmu@{ec\+\_\+domain\+\_\+find\+\_\+fmmu}!domain.\+h@{domain.\+h}}
\subsubsection{ec\+\_\+domain\+\_\+find\+\_\+fmmu()}
{\footnotesize\ttfamily const \textbf{ ec\+\_\+fmmu\+\_\+config\+\_\+t}$\ast$ ec\+\_\+domain\+\_\+find\+\_\+fmmu (\begin{DoxyParamCaption}\item[{const \textbf{ ec\+\_\+domain\+\_\+t} $\ast$}]{domain,  }\item[{unsigned int}]{pos }\end{DoxyParamCaption})}



Get a certain F\+M\+MU configuration via its position in the list. 

\begin{DoxyReturn}{Returns}
F\+M\+MU at position {\itshape pos}, or N\+U\+LL. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em domain} & Ether\+C\+AT domain. \\
\hline
{\em pos} & List position. \\
\hline
\end{DoxyParams}


Definition at line 350 of file domain.\+c.

